<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="format-detection" content="telephone=no" />
    #parse("/h5/common/webWords.html")
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/medioadaption.css" />
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/stcss.css" />
    <script type="text/javascript" src="http://${staticHost}/js/jquery.js"></script>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script type="text/javascript">

        function materialDownload(materialId) {

            var courseId = $("#courseId").val();
            var semesterId = $("#semesterId").val();
            var packetId = $("#packetId").val();

            $.ajax({
                type: 'post',
                url: '${requestHost}/tutorship/auth/tutorship/download',
                contentType: 'application/x-www-form-urlencoded; charset=utf-8',
                data: {
                    courseId: courseId,
                    semesterId: semesterId,
                    packetId : packetId,
                    materialId: materialId
                },
                success: function (result) {
                    if (result.status == '00000000') {

                    }else {
                        alert("服务器错误");
                    }
                }
            });

        }
    </script>
</head>
<body>
<form name="form1" method="post" action="fread.aspx?id=377" id="form1">
    <div>
        <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTcxMjAyMjI5MmRk1qw80uoEo/f66eJN41xYat8eiXA=" />
    </div>

    <div>
        <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="D9DC423D" />
    </div>

    <div class="dlny clear">
        <dl>
            <dt><a href="/edu/auth/toEditHeadprotrait"><img src="${headPortrait}"></a></dt>
            <dd>
                [${studentName}]
                #if( "${studentType}" == "1" )
                欢迎光临梦想在线！
                #else
                <span><a href="/edu/auth/toEditStudentInfo">[修改]</a></span>
                ${mood}
                #end
            </dd>
        </dl>
    </div>

    <div class="main">
        <div class="weizhi clear">
            当前位置：<a href="/curriculum/auth/curriculumList?courseId=${courseId}&courseName=${courseName}" id="courseNameId">$courseName</a> > 辅导资料
        </div>
        <div class="newinfo">
            <input type="hidden" id="courseId" value="$!courseId"/>
            <input type="hidden" id="semesterId" value="$!semesterId"/>
            <input type="hidden" id="packetId" value="$!packetId"/>
            <div class="newts">
                <h2 id="$tutorshipName"></h2>
                <!--<P>2017-01-03</P>-->
            </div>
            <div class="newc">
                #foreach($tutorship in $tutorshipList)
                    <p><a class=ke-insertfile onclick="materialDownload('$tutorship.id')"  href="${imageHost}$tutorship.materialUrl" target=_blank>$tutorship.materialName ----点击此处下载</a></p>
                #end
                <!--<p><a class=ke-insertfile onclick="materialDownload('$tutorship.id')" href="${imageHost}$tutorship.materialUrl" target=_blank>$tutorship.materialName &#45;&#45;&#45;&#45;点击此处下载</a></p>-->
        </div>

    </div>

    <div class="holderdiv"></div>

    <div class="fixdiv">
        <ul>
            <li><a href="javascript:void(0)" onclick="window.history.go(-1)"><img src="http://${staticHost}/images/foticon001.jpg"><span>返回</span></a></li>
            <li><a href="/edu/auth/modifyPwd"><img src="http://${staticHost}/images/foticon004.jpg"><span>重置密码</span></a></li>
            <li><a href="javascript:void(0)" onclick="loginOut()"><img src="http://${staticHost}/images/foticon003.jpg"><span>退出系统</span></a></li>
        </ul>
    </div>
</form>
</body>
</html>
